home *** CD-ROM | disk | FTP | other *** search
/ MACD 5 (Alt) / MACD 5.bin / workbench / libs / intuisup.lha / Intuisup / source.lha / Pointer / pointer.h < prev   
Encoding:
C/C++ Source or Header  |  1992-07-11  |  1.8 KB  |  61 lines

  1. /* $Revision Header *** Header built automatically - do not edit! ***********
  2.  *
  3.  *    (C) Copyright 1992 by Torsten Jürgeleit
  4.  *
  5.  *    Name .....: pointer.h
  6.  *    Created ..: Wednesday 08-Jan-92 22:34:45
  7.  *    Revision .: 1
  8.  *
  9.  *    Date        Author                 Comment
  10.  *    =========   ====================   ====================
  11.  *    11-Jul-92   Torsten Jürgeleit      now visible gadgets can be removed
  12.  *                       by changing mouse pointer to
  13.  *                       busy pointer
  14.  *    08-Jan-92   Torsten Jürgeleit      Created this file!
  15.  *
  16.  ****************************************************************************
  17.  *
  18.  *    Structures, prototypes and pragmas for mouse pointer functions
  19.  *
  20.  * $Revision Header ********************************************************/
  21.  
  22. #ifndef    ISUP_MOUSE_POINTER_H
  23. #define    ISUP_MOUSE_POINTER_H
  24.  
  25.     /* Structures for mouse pointer */
  26.  
  27. struct PointerData {
  28.     UBYTE    pd_Width;
  29.     UBYTE    pd_Height;
  30.     BYTE    pd_XOffset;
  31.     BYTE    pd_YOffset;
  32.     UWORD    *pd_Data;
  33. };
  34. struct PointerList {
  35.     LONG    pl_ID;        /* id = 'ISUP' */
  36.     UBYTE    pl_Width;
  37.     UBYTE    pl_Height;
  38.     BYTE    pl_XOffset;
  39.     BYTE    pl_YOffset;
  40.     UWORD    *pl_Data;
  41.     UWORD    *pl_Buffer;    /* if non NULL then chipmem buffer was allocated */
  42.     LONG    pl_BufferSize;
  43.     struct Menu         *pl_Menu;        /* saved menu before installing busy pointer */
  44.     struct MinList      pl_GadgetList;    /* saved GadgetLists before installing busy pointer */
  45.     struct PointerList  *pl_Next;
  46. };
  47.     /* Global prototypes */
  48.  
  49. VOID change_mouse_pointer(struct Window  *win, struct PointerData  *pd,
  50.                                BOOL remove_gadgets);
  51. VOID restore_mouse_pointer(struct Window  *win);
  52. VOID move_mouse_pointer(struct Window  *win, SHORT x, SHORT y, BOOL button);
  53.  
  54.     /* Global pragmas (Aztec C v5.2a) */
  55.  
  56. #pragma intfunc(change_mouse_pointer(a0,a1,d0))
  57. #pragma intfunc(restore_mouse_pointer(a0))
  58. #pragma intfunc(move_mouse_pointer(a0,d0,d1,d2))
  59.  
  60. #endif   /* ISUP_MOUSE_POINTER_H */
  61.